package Demo4;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.naming.Context;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("Demo4");
        Person p = context.getBean(Person.class);
        System.out.println(p);
    }
}
